﻿<UserControl x:Class="FrontDisplay.Weather.ParametersPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:loc="clr-namespace:FrontDisplay.Localization"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <UserControl.Resources>
        <ResourceDictionary Source="../../Themes/DialogWindow.xaml"></ResourceDictionary>
    </UserControl.Resources>
    <DockPanel>
        <StackPanel Margin="4" DockPanel.Dock="Top">
            <StackPanel Orientation="Horizontal">
                <Label>
                    <TextBlock Text="{loc:Translate Key=Weather.City, IsAutoUpdate=true}" />
                </Label>
                <Label>
                    <TextBlock x:Name="CityName" x:FieldModifier="private" FontWeight="Bold" Text="{loc:Translate Key=Weather.None}" />
                </Label>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label>
                    <TextBlock Text="{loc:Translate Key=Weather.Temperature, IsAutoUpdate=true}" />
                </Label>
                <RadioButton x:Name="CelsiusRadioButton">
                    <TextBlock Text="{loc:Translate Key=Weather.Celsius, IsAutoUpdate=true}"/>
                </RadioButton>
                <RadioButton x:Name="FahrenheitRadioButton">
                    <TextBlock Text="{loc:Translate Key=Weather.Fahrenheit, IsAutoUpdate=true}"/>
                </RadioButton>
            </StackPanel>
        </StackPanel>
        <StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom">
            <Label>
                <TextBlock MouseDown="LinkLabelMouseDown" Foreground="Blue" TextDecorations="Underline" Cursor="Hand">http://weather.yahoo.com/</TextBlock>
            </Label>
        </StackPanel>
        <Expander IsExpanded="False" Header="{loc:Translate Key=Weather.SelectCity, IsAutoUpdate=true}">
            <DockPanel>
                <Grid DockPanel.Dock="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="auto" />
                    </Grid.ColumnDefinitions>
                    <Label Grid.Column="0">
                        <TextBlock Text="{loc:Translate Key=Weather.CityName, IsAutoUpdate=true}" />
                    </Label>
                    <TextBox Grid.Column="1" x:Name="SearchCityName" Padding="2"></TextBox>
                    <Button Grid.Column="2" x:Name="SearchButton" Click="SearchButtonClick" Margin="3" MinWidth="50">
                        <TextBlock Text="{loc:Translate Key=Weather.Search, IsAutoUpdate=true}"></TextBlock>
                    </Button>
                </Grid>
                <ListBox x:Name="CityList" BorderThickness="2" Background="Transparent" MouseDoubleClick="CityListMouseDoubleClick">

                </ListBox>
            </DockPanel>
        </Expander>
    </DockPanel>
</UserControl>
